package cn.com.shinho.hg.core.config;

import cn.com.shinho.hg.core.config.properties.AppNameProperties;
import cn.com.shinho.hg.core.config.properties.LogProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: hg-server-parent
 * @description: ${description}
 * @author: Mr.Ye
 * @create: 2018-07-17
 **/
@Configuration
public class DefaultProperties {

    @Bean
    @ConfigurationProperties(prefix = "hg.log")
    public LogProperties logProperties() {
        return new LogProperties();
    }

    @Bean
    @ConfigurationProperties(prefix = "spring.application.name")
    public AppNameProperties appNameProperties() {
        return new AppNameProperties();
    }
}
